package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SysMenuByName {
    @TableId(type= IdType.AUTO)
    private Integer id;
    private String title;
    private Integer parentId;
    @TableField("url")
    private String path;
    private String name;
    private String perms;
    private Integer type;
    private String icon;
    private Boolean hidden;

    private Integer orderNum;
    private String parentTitle;
    @JsonInclude(value= JsonInclude.Include.NON_EMPTY)
    private List<SysMenuByName> children;
}
